﻿/*******************************************************************************
 * Copyright © 2016 DJY 版权所有
 * Author: DJY
 * Description: 后台管理系统
 * Website：http://www.djyweb.cn
*********************************************************************************/
using Newtonsoft.Json;
using System;
using System.Xml.Serialization;

namespace DJY.Code
{
    public class OperatorModel
    {
        public string UserId { get; set; }
        public string UserCode { get; set; }
        public string UserName { get; set; }
        public string HeaderPic { get; set; }
        public string CompanyId { get; set; }
        public string CompanyName { get; set; }
        public string DepartmentId { get; set; }
        public string Department { get; set; }
        public string DutyId { get; set; }
        public string Duty { get; set; }
        public string RoleId { get; set; }
        public string Role { get; set; }
        public string LoginIPAddress { get; set; }
        public string LoginIPAddressName { get; set; }
        public string LoginToken { get; set; }
        public DateTime LoginTime { get; set; }
        public bool IsSystem { get; set; }
        public int UserType { get; set; }
        /// <summary>
        /// 过期时间(分钟)
        /// </summary>
        [XmlIgnore]
        [JsonIgnore]
        public int expires { get; set; } = 60;
    }
}
